/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mvc.AdminInterna;


import com.beans.UsuarioBean;
import com.mvc.RequestHandler;
import java.io.IOException;
import java.util.ArrayList;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 *
 * @author victor
 */
public class ListaUsuarios implements RequestHandler{
    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, NamingException {
        HttpSession sesion = request.getSession();
        UsuarioBean usuario = (UsuarioBean) sesion.getAttribute("usuario");

        ArrayList lista=new com.administracion.ListaUsuarios().getLista();
        request.setAttribute("lista", lista);
        
    }
}
